package br.com.wepa.webapps.security;

public interface SecurityConstants {

	// Scopes
	public static final String SESSION_SCOPE = "session";

	public static final String REQUEST_SCOPE = "request";

	public static final String APPLICATION_SCOPE = "application";

	//Flags
	public static final int ACCESS_ALLOWED = 1;
	public static final int INVALID_AUTHENTICATION_KEY_STATE = 0;
	public static final int ACCESS_DENIED = -1;

	//Properties Values
	public static final String ACCESS_WHEN_NO_ROLE_FOUND_DEFAULT = "true";

	public static final String AUTHENTICATION_KEY_ATTRIBUTE_DEFAULT = "authenticationKey";

	public static final String AUTHENTICATION_KEY_ATTRIBUTE_SCOPE_DEFAULT = SESSION_SCOPE;

	public static final String PERMISSIONS_ATTRIBUTE_DEFAULT = "controlSecutiryPermissions";

	public static final String PERMISSIONS_ATTRIBUTE_SCOPE_DEFAULT = SESSION_SCOPE;

	public static final String SECURITY_MSG_ATTRIBUTE_DEFAULT = "controlSecurityMsg";

	public static final String SECURITY_MSG_ATTRIBUTE_SCOPE_DEFAULT = REQUEST_SCOPE;

	public static final String MSG_INVALID_AUTHENTICATION_KEY_STATE_DEFAULT = "Do Authentication,you passkey is not valid or may be expired!";

	public static final String MSG_ACCESS_DENIED_DEFAULT = "access denied!";

	public static final String ENCRYPT_ALGORITHM_DEFAULT = "md5";

	public static final String PASSWORD_ENCRYPT_ALGORITHM_DEFAULT = "PBEWithMD5AndDES";

	public static final String JNDI_NAME_DEFAULT = "securtyControl";
	
	public static final String VALUE_SEPARATOR = ";";
}
